﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Baggr.ClientSite.Models
{
    public static class DateHelper
    {
        public static string ToActualString(this DateTime date)
        {
            if (date.Date == DateTime.Today)
                return date.ToString("t");
            if (date.Year == DateTime.Today.Year)
                return date.ToString("dd.MM");
            return date.ToShortDateString();
        }
    }
}
